package com.chen.Dome5_synchronized_method;

public class  drawThread extends Thread{
    private Account acc;
    public drawThread(String name, Account acc) {
        super(name);
        this.acc=acc;
    }
    @Override
    public void run() {
        acc.drawmoney(100000);

    }

}
